import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import {store} from './store'
import axios from 'axios'
import ElementUI from 'element-ui'

// 工具类
import Util from './util'; // 全局注册公共方法
import {axios_get,axios_post} from '@/plugins/axios';
import Api from './api';
import vTool from './VueEvent'; // 全局注册公共Vue方法
// IE 兼容
import '@babel/polyfill';
import 'element-ui/lib/theme-chalk/index.css'
import './plugins/iview.js'

Vue.use(ElementUI)

//  绑定全局属性
Vue.prototype.$ajaxGet = axios_get;
Vue.prototype.$ajaxPost = axios_post;
Vue.prototype.$API = Api;
Vue.prototype.$Util = Util;
Vue.prototype.$vTool = vTool;

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
